package com.CST.mapper.dataplatform;


import com.CST.entity.BdDepartment;
import com.CST.entity.BdEnumFuzzy;
import com.CST.entity.BdEnumdetail;
import com.CST.vo.BdEnumDetailUnLinkVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;


import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ly
 * @since 2021-09-23
 */
@Repository
public interface BdEnumdetailMapper extends BaseMapper<BdEnumdetail> {

    List<BdEnumdetail> getEnumDetailSource(BdEnumdetail entity);

    List<BdEnumdetail> getLikeEnumDetailSource(BdEnumdetail entity);
    
    List<BdEnumdetail> listEnumDetailIsLink(BdEnumFuzzy entity);
    
    List<BdEnumdetail> listEnumDetailUnLink(BdEnumFuzzy entity);

    void addEnumDetail(BdEnumdetail entity);

    void modifyEnumDetail(BdEnumdetail entity);

    void batchDeleteEnumDetail(List<Integer> ids);
    
    List<BdEnumdetail> listAllAccount();
    List<BdEnumdetail> listAllDeptSalaryRelation();

    /**
     * 获取对应关系的edFirst字段
     * 根据edParentCode确定
     * @param bdEnumdetail
     * @return
     */
    List<BdEnumdetail> listEdFirstByFuzzy(BdEnumdetail bdEnumdetail);
    List<BdEnumDetailUnLinkVO> selectBdEnumDetailUnLink(int year);

}
